package cn.dnui_zzh807.dnuifood_16110100807.service;

import java.util.List;

import cn.dnui_zzh807.dnuifood_16110100807.bean.CommentInfo;
import cn.dnui_zzh807.dnuifood_16110100807.bean.FoodInfo;
import cn.dnui_zzh807.dnuifood_16110100807.bean.ResultBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FoodService {
    @GET("getFoodByShop.do")
    Call<List<FoodInfo>> getFoodByShop(@Query("shop_id")String shop_id);




    @GET("getFoodById.do")
    Call<FoodInfo> getFoodById(@Query("food_id")String food_id);

    @GET("getFoodBySearch.do")
    Call<List<FoodInfo>> getFoodBySearch(@Query("search")String search);

    @GET("getAllCommentsByFood.do")
    Call<List<CommentInfo>> getAllCommentsByFood(@Query("food_id")String food_id);

    @GET("insertComment.do")
    Call<ResultBean> insertComment(@Query("item_id")String item_id,
                                   @Query("content")String content);

    @GET("insertOrder.do")
    Call<ResultBean> insertOrder(@Query("user_id")String user_id,
                             @Query("food_id")String food_id,
                             @Query("num")String num,
                             @Query("sum")String sum,
                             @Query("suggesttime")String suggesttime,
                             @Query("address")String address

    );
}
